package com.qk.management.controller;

import com.qk.common.PageResult;
import com.qk.common.Result;
import com.qk.dto.log.OperateLogDTO;
import com.qk.management.service.OperateLogService;
import com.qk.vo.log.OperateLogVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Enid
 * @date: 2025/10/17 17:03
 * @description:
 */
@RestController
@RequestMapping("/logs")
public class OperateLogController {
    @Autowired
    private OperateLogService logService;
    @GetMapping
    public Result getList(OperateLogDTO dto) {
        PageResult<OperateLogVO> vo = logService.getList(dto);
        return Result.success(vo);
    }
}
